Arrays.sort() vs Collections.sort()


Posted by Rich on 2022-08-10

差別是:

  1. Collections 是給 List 用的,Arrays 是給 array 用的。
  2. Collections 用 binary sort, Arrays 用 merge sort

連結










Related Posts

ASP.NET Core Web API 入門教學 - 事前必備知識

ASP.NET Core Web API 入門教學 - 事前必備知識

指定安裝程式版本號

指定安裝程式版本號

Laravel and Cypress integration

Laravel and Cypress integration


Comments